package buzz.hubu.springcloudprovider8003.Controller;

import buzz.hubu.springcloudprovider8003.service.IdcartService;
import com.hubu.pojo.IdCart;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/idcart")
public class IdcartController {
    @Autowired
    private IdcartService idcartService;

    @GetMapping("/getOne")
    public IdCart getOne(String id){
        System.out.println("8003");
        return idcartService.queryById(id);
    }
}
